package com.briup.day11.abBean;

public class Circle extends Shape {
    private int radius = 2;

    public Circle() {

    }

    public Circle(String name, int radius) {
        super(name);
        this.radius = radius;
    }

    //普通子类继承抽象类
    public double getArea() {
        return Math.PI * radius * radius;
    }
}
